#include<stdio.h>
#include "cv.h"
#include "highgui.h"

int main(int argc,char *argv[])
{

  IplImage *inputImage ;
  inputImage = cvLoadImage(argv[1],CV_LOAD_IMAGE_GRAYSCALE);
  cvRectangle(inputImage,cvPoint(0,24),cvPoint(54,58),cvScalar(255,0,0,0),2,8,0);
  cvNamedWindow("image",CV_WINDOW_AUTOSIZE);
  cvShowImage("image",inputImage);
  cvSaveImage(argv[1],inputImage);
  cvWaitKey(0);
  cvDestroyWindow("image");
  cvReleaseImage(&inputImage);
  return 0;
}
